@@ -325,9 +325,6 @@ def consumer_info_api(request): |
||
325 | 325 |
submit_during_activity=during_activity |
326 | 326 |
) |
327 | 327 |
|
328 |
- user.resgister_at = log.created_at |
|
329 |
- user.save() |
|
330 |
- |
|
331 | 328 |
for act in activities: |
332 | 329 |
try: |
333 | 330 |
coupon = CouponInfo.objects.get(coupon_id=act['coupon_id']) |
@@ -359,7 +356,13 @@ def consumer_info_api(request): |
||
359 | 356 |
submit_pk=log.pk, |
360 | 357 |
) |
361 | 358 |
|
359 |
+ #更新注册时间 |
|
360 |
+ if not dupload: |
|
361 |
+ user.resgister_at = log.created_at |
|
362 |
+ user.save() |
|
363 |
+ |
|
362 | 364 |
if not user.test_user and not dupload: |
365 |
+ |
|
363 | 366 |
# TODO: Make statistic async |
364 | 367 |
cusi, _ = ConsumeUserStatisticInfo.objects.get_or_create( |
365 | 368 |
brand_id=brand.brand_id, |